//
//  NSDictionary+Addition.m
//  QueryStringBuilder
//
//  Created by Syed Arsalan Pervez on 2/13/13.
//  Copyright (c) 2013 SAPLogix. All rights reserved.
//

#import "NSDictionary+Addition.h"

@implementation NSDictionary (Addition)

- (BOOL)containsKey:(NSString *)key
{
    return [[self allKeys] containsObject:key];
}

- (BOOL)containsKeys:(NSArray *)keys
{
    for (NSString *key in keys)
    {
        if (![self containsKey:key])
            return NO;
    }
    
    return YES;
}

@end
